package com.jyw.system.domain.vo;

import com.jyw.system.domain.SysFileInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 沈峻
 * @ClassName SimpleFileVo
 * @Description TODO
 * @Date 2023/8/16 17:40
 **/
@Data
@ApiModel("基础文件对象")
@NoArgsConstructor
public class SimpleFileVo {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("附件地址")
    private String url;

    public SimpleFileVo(SysFileInfo fileInfo) {
        setId(fileInfo.getId());
        setName(fileInfo.getName());
        setUrl(fileInfo.getUrl());
    }
}
